package com.example.security.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.security.entity.SysPermission;

import java.util.List;

/**
 * @Description  
 * @author ZhiPeng.Lin
 * @Date 2022-02-10 
 */
public interface ISysPermissionService extends IService<SysPermission> {

    /**
     * 查询用户的权限.
     *
     * @param id
     * @return
     */
    List<SysPermission> selectListByUser(Integer id);

    /**
     * 查询具体某个接口的权限
     *
     * @param requestUrl
     * @return
     */
    List<SysPermission> selectListByPath(String requestUrl);
}
